Just a list of MembershipBean objects, with a variety of filtering and
manipulation methods
Properties
Methods
Name |
Returns |
Notes |
Example |
hasGroup ( groupName )
|
boolean |
|
|
filterByProfile ( p )
|
MembershipList |
Filter this membership list for only memberships for the given profile
|
|
filterByProfile ( p )
|
MembershipList |
|
|
filterByOrg ( orgId )
|
MembershipList |
Return a new list which is this list filtered so it only contains
memberships to the organisation with the given orgid
|
- $user.allMemberships().filterByOrg("ACMELTD")
|
filterByOrgType ( orgType )
|
MembershipList |
Return a new list which is this list filtered so it only contains
memberships to the organisation with the given orgTYpe
|
- $user.allMemberships().filterByOrgType("STORES")
|
filterByGroup ( groupName )
|
MembershipList |
Return a new list which is this list filtered so it only contains
memberships to the given group
|
- $user.allMemberships().filterByGroup("admin")
|
filterByGroupFolder ( groupFolderName )
|
MembershipList |
|
|
filterByGroupType ( groupType )
|
MembershipList |
|
|
filterByRole ( roleName )
|
MembershipList |
|
|
filterSubOrgs ( )
|
MembershipList |
Return a list which only includes memberships to sub-organisations
|
|
filterForWebsite ( website )
|
MembershipList |
|
|
forOrgs ( group )
|
MembershipList |
Returns a list of memberships for orgs referenced from this list and
which have the given group
|
|
toOrgsList ( )
|
OrgDataList |
Get a list of all orgs in the current membership list
|
|
toOrgsList ( nonRoot )
|
OrgDataList |
|
|
toGroupsList ( )
|
List |
Get a list of all groups in the current membership list
|
|
findById ( id )
|
MembershipBean |
|
|
orgIdsCsv ( )
|
String |
Return a csv formatted list of org ids in this list
|
|
orgTitlesCsv ( )
|
String |
Return a csv formatted list of org titles in this list
|
|
emailsCsv ( )
|
String |
Returns all referenced emails as a comma seperated value
|
|
userIdCsv ( )
|
String |
Returns all referenced user names as a comma seperated value
|
|